home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl460
/
cfootblj.lzh
/
SETUP2.BAT
< prev
Wrap
DOS Batch File
|
1992-02-17
|
2KB
|
60 lines
echo off
if not "%1"=="" if not "%1"== "?" goto SETUP
:HELP
echo Command:
echo {source {source {system {system
echo SETUP2 drive:} \root-sub.dir} drive:} \root-sub.dir} {r:}
echo Result:
echo Load files from source drive root sub-directory
echo to system drive root sub-directory
echo where r: is designated RAM disk
echo Examples:
echo A:SETUP2 A: \ C: \FOOTBALL E:
echo C:\DOWNLOAD.DIR\SETUP2 C: \DOWNLOAD.DIR C: \FOOTBALL C:
goto END
:SETUP
if not "%1"=="" if not "%2"=="" if not "%3"=="" if not "%4"=="" if not "%5"=="" goto OK
echo You must specify 5 SETUP2 parameters.
goto HELP
:OK
if "%2"=="\" set dir1=\
if not "%2"=="\" set dir1=%2\
if "%4"=="\" set dir2=\
if not "%4"=="\" set dir2=%4\
echo Source drive is %1
echo Source drive root sub-directory is %2
echo System drive is %3
echo System drive root sub-directory is %4
echo ----------------------------------------------------
if not "%5"=="%1" if not "%5"=="%3" echo RAM disk is %5 RAM disk assigned during warm-start
if "%5"=="%3" echo RAM disk is %3 System drive is used instead of RAM
if "%5"=="%1" echo RAM disk is %1 Source drive is used instead of RAM
echo ----------------------------------------------------
if exist %3%dir2%football.mod dir %3%dir2%football.mod
if exist %3\FE.bat dir %3\FE.bat
echo Press CTRL + C to abort assignment of RAM disk, etc.
pause
if exist FE.mod erase FE.mod
if exist %3%dir2%football.mod erase %3%dir2%football.mod
cls
echo %5 >> %3%dir2%football.mod
echo ECHO OFF >> FE.mod
echo IF EXIST %5FOOTBALL.TMP ERASE %5FOOTBALL.TMP >> FE.mod
echo %3 >> FE.mod
echo CHDIR%4 >> FE.mod
echo IF EXIST %3%dir2%FOOTBALL.TMP ERASE %3%dir2%FOOTBALL.TMP >> FE.mod
echo FOOTBAL$ >> FE.mod
echo CHDIR\ >> FE.mod
copy FE.mod %3\FE.bat
erase FE.mod
echo Your current %3\FE.BAT is listed below:
echo ----------------------------------------------------
type %3\FE.bat
echo ----------------------------------------------------
echo DONE!
echo ----------------------------------------------------
%3
CHDIR\
FE
:END